import React, {Component} from 'react'
import {HashRouter, Route, Switch} from 'react-router-dom'
import App from '../views/App'
import A from '../views/TestA'
import B from '../views/TestB'

class router extends Component {
    render() {
        return {
            <HashRouter>
                <Switch>
                    <Route exact path='/' components={App}/>
                    <Route exact path='/a' components={A}/>
                    <Route exact path='/b' components={B}/>
                </Switch>
            </HashRouter>
        }
    }
}
export default router